<template>
  <div class="warp">
    <h1>{{ title }}分类</h1>
    <!-- solt插槽标签 -->
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "Tab",
  props: ["title", "list"],
};
</script>

<style scoped>
.warp {
  width: 250px;
  height: 350px;
  background-color: aqua;
}
.warp h1 {
  background-color: bisque;
}
</style>